package com.lichongbing.lyoggl.service;

import com.alibaba.fastjson.JSONObject;
import com.lichongbing.lyoggl.model.Money;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lichongbing.lyoggl.model.ReportMounth;


import java.util.List;

/**
 *
 */

public interface MoneyService extends IService<Money> {
    /**
     * 查询接口
     * @param userid
     * @return
     */
    List<Money> findByUid(String userid);

    /**
     * 删除接口
     * @param id
     * @param userid
     * @return
     */
    int deleteByUid(String id, String userid);

    /**
     * 月报接口
     * @param mouth
     * @param userid
     * @return
     */
    ReportMounth reportMounth(String mouth,String year, String userid);

    /**
     * 每日支出汇总
     * @param day
     * @param year
     * @param mouth
     * @return
     */

    String reportDay(String day, String year, String mouth,String userid);
}
